// import request from '../config'
import request from '../config/indexNew'


// // 列表
// export const getAutoMakeFriendList = (data: any) => {
//   const url = '/AutoMakeFriend/List'
//   return request(url, data)
// }
// // 新增&编辑
// export const putAutoMakeFriend = (data: any) => {
//   const url = '/AutoMakeFriend/Put'
//   return request(url, data)
// }
// // 下载模板
// export const downloadTplAutoMakeFriend = (data?: any) => {
//   const url = '/AutoMakeFriend/DownloadTpl'
//   return request(url, data)
// }
// // 解析表格
// export const parseExcelAutoMakeFriend = (data: any) => {
//   const url = '/AutoMakeFriend/ParseExcel'
//   return request(url, data)
// }
// // 删除
// export const delAutoMakeFriend = (data: any) => {
//   const url = '/AutoMakeFriend/Del'
//   return request(url, data)
// }
// // 开始
// export const startAutoMakeFriend = (data: any) => {
//   const url = '/AutoMakeFriend/Start'
//   return request(url, data)
// }
// // 暂停
// export const pauseAutoMakeFriend = (data: any) => {
//   const url = '/AutoMakeFriend/Pause'
//   return request(url, data)
// }
// // 详情
// export const getAutoMakeFriendDetail = (data: any) => {
//   const url = '/AutoMakeFriend/Detail'
//   return request(url, data)
// }
// // 详情-子列表
// export const getAutoMakeFriendDetailList = (data: any) => {
//   const url = '/AutoMakeFriend/DetailList'
//   return request(url, data)
// }
// // 详情-子列表-导出
// export const exportAutoMakeFriendDetail = (data: any) => {
//   const url = '/AutoMakeFriend/DetailListExport'
//   return request(url, data)
// }
// // 任务设置
// export const settingsAutoMakeFriend = (data: any) => {
//   const url = '/AutoMakeFriend/Settings'
//   return request(url, data)
// }
// // 任务设置
// export const showSettingsAutoMakeFriend = (data?: any) => {
//   const url = '/AutoMakeFriend/SettingsShow'
//   return request(url, data)
// }

// 列表
export const getAutoMakeFriendList = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/List',
    method: 'POST',
    data
  })
}
// 新增&编辑
export const putAutoMakeFriend = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/Put',
    method: 'POST',
    data
  })
}
// 下载模板
export const downloadTplAutoMakeFriend = (data?: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/DownloadTpl',
    method: 'POST',
    data,
    responseType: 'arraybuffer'
  })
}
// 解析表格
export const parseExcelAutoMakeFriend = (form: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/ParseExcel',
    method: 'POST',
    data: form
  })
}
// 删除
export const delAutoMakeFriend = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/Del',
    method: 'POST',
    data
  })
}
// 开始
export const startAutoMakeFriend = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/Start',
    method: 'POST',
    data
  })
}
// 暂停
export const pauseAutoMakeFriend = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/Pause',
    method: 'POST',
    data
  })
}
// 详情
export const getAutoMakeFriendDetail = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/Detail',
    method: 'POST',
    data
  })
}
// 详情-子列表
export const getAutoMakeFriendDetailList = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/DetailList',
    method: 'POST',
    data
  })
}
// 详情-子列表-导出
export const exportAutoMakeFriendDetail = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/DetailListExport',
    method: 'POST',
    data,
    responseType: 'arraybuffer'
  })
}
// 任务设置
export const settingsAutoMakeFriend = (data: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/Settings',
    method: 'POST',
    data
  })
}
// 任务设置
export const showSettingsAutoMakeFriend = (data?: any) => {
  return request({
    url: '/api/win-tool/AutoMakeFriend/SettingsShow',
    method: 'POST',
    data
  })
}
